home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_olv_music_danger.cog < prev    next >
Text File  |  1999-11-15  |  935b  |  61 lines

  1. # Jones 3D Cog Script
  2. #
  3. # olv_music_danger.cog
  4. #
  5. # Cog description
  6. #
  7. # [DS & revised by HB]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ==============================================================================
  12.  
  13. symbols
  14.  
  15.     message        startup
  16.     message        entered
  17.  
  18.     surface        trigger_face
  19.  
  20.     sector        trigger_sect
  21.  
  22.     sound        music0=mus_gen_danger1.wav                    local
  23.  
  24.     thing        player                                        local
  25.  
  26.     int            played=0                                    local
  27.  
  28. end
  29.  
  30. # ------------------------------------------------------------------------------
  31.  
  32. code
  33.  
  34. # ..............................................................................
  35.  
  36. startup:
  37.  
  38.     player = GetLocalPlayerThing();
  39.  
  40.     return;
  41.  
  42. # ..............................................................................
  43.  
  44. entered:
  45.  
  46.     if(played == 1)
  47.     {
  48.         return;
  49.     }
  50.  
  51.     played=1;
  52.     PlaySoundLocal(music0, 1.0, 0.0, 0x0, 0);
  53.  
  54.     return;
  55.  
  56. end
  57.  
  58.  
  59.  
  60.  
  61.